﻿using AppsModel.Models;
using MVC_basic.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVC_basic.Data_Layer.Interface
{
    public interface IdbApp
    {
        App addCanvasApp(string name, string logoUrl, string siteUrl, int userId, int canvasWidth, int canvasHeight);

        App addCajaApp(string name, string logoUrl, string acceptedUrl, int userId);

        void updateCanvasApp(int id, string name, string logoUrl, string siteUrl, int userId, int canvasWidth, int canvasHeight);

        void updateCajaApp(int id, string name, string acceptedUrl, string logoUrl);

        void deleteApp(int AppId);

        List<App> getApps();

        List<App> getAppsByUser(int UserId);

        App getApp(int id);

        List<App> getInstalledApps(int UserId);

        void installApp(int AppId, int UserId);

        void uninstallApp(int AppId, int UserId);
    }
}
